package com.demo.rmi.server;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class UserService extends UnicastRemoteObject implements UserInterface {

    private static final Logger logger = LoggerFactory.getLogger(UserService.class);
    protected UserService() throws RemoteException {
    }

    public String getuser() throws RemoteException {
        logger.info("访问getUser");
        return "李四";
    }
}
